﻿using OpenReflect.Domain.Contracts;
using OpenReflect.Domain.Contracts.Declarations;

namespace OpenReflect.Domain.Model
{
	public class Parameter : IParameter
	{
		#region IParameter Members

		public ITypeDeclaration TypeDeclaration { get; set; }

		public string Name { get; set; }

		#endregion

		public override bool Equals(object obj)
		{
			var param = obj as IParameter;
			return param != null && Name == param.Name && this.TypeDeclaration.Equals(param.TypeDeclaration);
		}
	}
}